package com.itheima.health.config;

import com.itheima.health.utils.QiniuUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QiniuConfiguration {
    /*
    * @Date: 11:30 上午 2021/1/8
    * @param:
    * @return:
    * @Description:注入QiniuUtils的bean
    */
    @ConfigurationProperties("qiniu")
    @Bean
    public QiniuUtils qiniuUtils() {
        return new QiniuUtils();
    }

}
